lcBlockAddHatch | LiteCAD API |
HANDLE lcBlockAddHatch ( HANDLE hBlock, LPCWSTR szFileName, LPCWSTR szPattern, double Scale, double RotAngle ); |
hBlock | |
Handle to a block. | |
szFileName | |
Name of the file which contains hatch patterns definitions. For example, LiteCAD package has the "hatches.pat" file. | |
szPattern | |
The meaning depends on the szFileName parameter. If the filename is specified,
then szPattern is a name of hatch pattern, as written in the file. If the filename is an empty string, then szPattern is a hatch pattern definition. See the code sample below. | |
Scale | |
Scale of the pattern. | |
RotAngle | |
Rotation angle of the pattern. |
Handle to created hatch object or NULL if the function fails. |
Code sample |